package com.seari.custody.enums;

/**
 * @author lxv1
 * 监护大纲流转状态
 */
public enum OutLineProjectStatus {
    PENDING("待处理", "1"),
    DATA_PROOFREADING("资料校对", "2"),
    PROCESSING("处理中", "3"),
    HAS_BEEN_SENT("已发送", "4"),
    DATA_REJECT_PROCESSED("技术要求表被退回待处理", "5"),
    DATA_MODIFY_ACK("技术要求表被修改待确认", "6"),
    DONE("已完结", "7");
    private String description;
    private String statusCode;

    public static String getMsg(String statusCode) {
        for (OutLineProjectStatus value : values()) {

            if (value.getStatusCode().equals(statusCode)) {
                return value.getDescription();
            }
        }
        return "";
    }

    OutLineProjectStatus(String description, String statusCode) {
        this.description = description;
        this.statusCode = statusCode;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }
}
